//
//  RootWindowController.m
//  Cat
//
//  Created by apple on 2017/6/19.
//  Copyright © 2017年 LAN. All rights reserved.
//

#import "RootWindowController.h"
//#import "TitlebarViewController.h"


@interface RootWindowController ()
//@property (nonatomic,strong)TitlebarViewController *titlebarView;
@end

@implementation RootWindowController


- (void)windowDidLoad {
    [super windowDidLoad];
    
    // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
    self.window.titlebarAppearsTransparent = YES;
    self.window.alphaValue = 0.95f;
    self.window.backgroundColor = [NSColor blackColor];
    
    
//    [self.titlebarView setLayoutAttribute:NSLayoutAttributeRight];
//    NSTitlebarAccessoryViewController *titleBarView = [[NSTitlebarAccessoryViewController alloc]init];
//    [self.window addTitlebarAccessoryViewController:titleBarView];
   
    [self.window setTitleVisibility:NSWindowTitleHidden];
//    NSView *themeView = [[self.window contentView] superview];
//    
//    NSArray *subViews = [themeView subviews];
//    
//    NSView *containerView = [subViews objectAtIndex:1];
//    
//    
//    [containerView addSubview:self.customTitleBarView positioned:NSWindowBelow relativeTo:nil];
}

@end
